﻿@model EventManager.ViewModels.EventViewModel
@{
    ViewBag.Title = "Create event";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<section class="content">
    @using (@Html.BeginForm("CreateEvent", "Events", FormMethod.Post))
    {
        @Html.ValidationSummary(true, "Form has error.")
        @Html.EditorForModel()

        <input type="submit" value="Save" />
    }
</section>
@section scripts
{
    <script type="text/javascript">

        $(document).ready(function () {
            $('input[data-val="true"]').blur(function () {
                $(this).valid();
            })
        })

    </script>
}